package net.suplementos.web.action;

import net.suplementos.pojo.FormaPagamento;
import net.suplementos.pojo.Venda;
import net.suplementos.web.LocalConstantes;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.InterceptorRef;
import org.apache.struts2.convention.annotation.InterceptorRefs;
import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.convention.annotation.Result;

import com.opensymphony.xwork2.ActionSupport;

@Namespace("/selecionarFormasPagamento")
@InterceptorRefs({
	@InterceptorRef(value = "store", params = {"operationMode", "AUTOMATIC"}),
	@InterceptorRef("defaultStack")
})
public class SelecionarFormasPagamentoAction extends ActionSupport {
	
	private Venda venda;
	private FormaPagamento formaPagamento;

	@Action(value = "abrirSelecionar", results = {
		@Result(name = SUCCESS, location = LocalConstantes.LOCAL_JSP_FINANCEIRO_VENDA + "/selecionarFormasPagamento.jsp") 
	})
    public String abrirSelecionar() throws Exception {
        return SUCCESS;
    }

	@Action(value = "selecionar", results = {
		@Result(name = SUCCESS, params = {"actionName", "abrirSelecionar"}, type = "redirectAction")
	})
	public String selecionar() throws Exception {
		return SUCCESS;
	}
}